package ntd.util.modular.function.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import ntd.util.config.common.controller.BaseMybatisController;
import ntd.util.modular.function.entity.AppVersion;
import ntd.util.modular.function.service.AppVersionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"功能中心-应用版本管理"})
@RestController
@RequestMapping("/function/app-version")
public class AppVersionController extends BaseMybatisController<AppVersion, AppVersionService> {

    @ApiOperation("获取应用最新版本")
    @GetMapping("last-version")
    public AppVersion getLastVersion(String appInfoId) {
        return getService().getLastVersion(appInfoId);
    }
}
